 # Banner.coffee
 #
 # @description :: TODO: You might write a short summary of how this model works and what it represents here.
 # @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models

module.exports =

  page:
    title: '上传文件管理'

  attributes:

    fd:
      type: 'string'
      required: true
      page:
        type: 'text'
        desc: '存储位置'

    ossPath:
      type: 'string'
      required: false

    size:
      type: 'integer'
      required: true
      page:
        type: 'text'
        desc: '大小'

    type:
      type: 'string'
      required: true
      page:
        type: 'text'
        desc: '类型'

    filename:
      type: 'string'
      required: true
      page:
        type: 'text'
        desc: '文件名'

    status:
      type: 'string'
      required: true
      page:
        type: 'text'
        desc: '状态'

    extra:
      type: 'string'
      page:
        type: 'text'
        desc: '扩展'
    cdnPath:
      type: 'string'
      page:
        type: 'text'
        desc: 'cdnPath'

    isUsing:
      type: 'boolean'
      defaultsTo: true
